<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="top">
      <div class="wrap">
        <div class="icon">
          <img
            src="https://s02.mifile.cn/assets/static/image/logo-mi2.png"
            alt=""
            srcset=""
          />
        </div>
        <div class="search">
          <input type="text" />
          <input type="submit" />
        </div>
        <div class="select">
          <ul>
            <li><a href="">小米手机</a></li>
            <li><a href="">Redmi 红米</a></li>
            <li><a href="">电视</a></li>
            <li><a href="">笔记本</a></li>
            <li><a href="">平板</a></li>
            <li><a href="">家电</a></li>
            <li><a href="">路由器</a></li>
            <li><a href="">智能硬件</a></li>
            <li><a href="">服务</a></li>
            <li><a href="">社区</a></li>
          </ul>
        </div>
      </div>
    </div>
  </body>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    #top .wrap {
      width: 1226px;
      height: 100px;
      margin: 0 auto;
      position: relative;
    }
    #top .icon img {
      width: 56px;
      display: inline-block;
    }
    #top .wrap .icon {
      float: left;
      height: 100px;
      padding: 22px 0;
      box-sizing: border-box;
    }
    #top .select ul {
      list-style: none;
      position: absolute;
      display: inline-block;
      top: 0;
      left: 228px;
    }
    #top .select ul li a {
      text-decoration: none;
      color: #333;
    }
    #top .select ul li {
      display: inline-block;
      height: 100px;
      padding: 41px 10px;
      box-sizing: border-box;
    }
    #top .select ul li a:hover {
      color: #ff6700;
    }
    #top .select ul li {
      display: inline-block;
    }
    #top .search {
      float: right;
      width: 297px;
      height: 50px;
      box-sizing: border-box;
      padding-left: 10px;
      border: 1px solid #e0e0e0;
    }
    #top .search input {
      background: none;
      outline: none;
      border: none;
    }
  </style>
</html>
